//
//  LTFADCollectionViewCell.m
//  NeteaseNews
//
//  Created by liutaifeng on 16/4/26.
//  Copyright © 2016年 liutaifeng. All rights reserved.
//

#import "LTFADCollectionViewCell.h"

@implementation LTFADCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    self.picImageView = [[UIImageView alloc] init];
    [self.contentView addSubview:_picImageView];
    [_picImageView release];
    
    self.titltLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_titltLabel];
    [_titltLabel release];
}
- (void)layoutSubviews {
    [super layoutSubviews];
    self.picImageView.frame = self.contentView.frame;
    self.titltLabel.frame = CGRectMake(10, self.contentView.frame.size.height / 5 * 4, self.contentView.frame.size.width - 50, 30);
    _titltLabel.textColor = [UIColor whiteColor];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
